//package com.my.hotel.controller;
//import com.my.hotel.entity.TbClient;
//import com.my.hotel.service.ResUserService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.RequestMapping;
//
//@Controller
//@RequestMapping("/con")
//public class ResUserController {
//    @Autowired
//    private ResUserService resUserService;
//
//    @RequestMapping("/jump10")//登录页面跳转注册
//    public String addResUser() {
//        return "/WEB-INF/login1.jsp";
//    }
//    //注册新用户
//
//    @RequestMapping("/addResUser")
//    public String addResUser(TbClient tbClient) {
//        System.out.println("resUser");
//        //从页面拿到数据存到实体类resUser里面
//        resUserService.addResUserService(tbClient);//类传到Service里面了
//        return "login2";//登录页面
//    }
//
//    @RequestMapping("/jump9")//注册页面跳转登录
//    public String login2() {
//        return "login2";
//    }
//}
